﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<Eacademy.Domain.Models.QuestionViewModel>" %>
<div class="question">
    <div class="question-desc">
        <b>
            <%=Model.Question %></b>
        <%: Html.HiddenFor(model => model.QuestionId) %>
    </div>
    <%
        int i = 0; 
        //Model.Choices.Shuffle();
        %>
    <%foreach (var choices in Model.Choices)
      {
    %>
    <div class="choices">
        <div class="choice-letter">
            <%: Html.RadioButtonFor(model => model.Answer,choices.ChoiceId) %>
        </div>
        <div class="choice-desc">
            <b>
                <%=((char)((i++)+65)).ToString().ToLower() %>.</b>
            <%=choices.ChoiceAnswer %>
        </div>
    </div>
    <%} %>
    <div>
        <%: Html.HiddenIndexerInputForModel() %>
    </div>
    <div class="clear">
    </div>
</div>
